package com.xuhuan.demo.pattern.singleton.type8;

/**
 * @author huan.xu
 * @date 2021/10/3 17:26
 * @description
 */
public class SingletonDemo8 {

  public static void main(String[] args) {
    System.out.println(Singleton.INSTANCE.hashCode());
    System.out.println(Singleton.INSTANCE.hashCode());
    System.out.println(Singleton.INSTANCE.hashCode());
    System.out.println(Singleton.INSTANCE.hashCode());
  }
}

enum Singleton {
  INSTANCE;

  public void say() {

  }
}
